package exam;

/**
 * Tests the answer to the first sample question.
 * The text of the question is as follows:
 * "0: Write a method that returns the sum of the numbers between 1 and 100."
 * 
 * @author Branden Ogata
 *
 */

public class TestSampleA00 extends Tester
{
  public static void main(String[] args)
  {
    final double points = getPoints(args);
    
    SampleA00 question = new SampleA00();
    System.out.println(test(Category.EQUALS, "oneToHundred():", ((100 * (101)) / 2), 
                            question.oneToHundred(), percentageToPoints(1, points)));
    System.out.format("[%.2f/%.2f]%n", getTotalPoints(), points);
  }
}
